<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('statHook')}">闯关通关分析</a></li>
        <li><a href="{:url('payerHook')}">充值玩家通关情况</a></li>
    </ul>
    <form class="search_form margin-top-20" method="get" action="{:url('statHook')}">
        <div class="well form-inline margin-top-20">
            时间：
            <input id="sDay" class="form-control js-date" style="width: 105px;" type="text" value="{:input('sDay', date('Y-m-d'))}" name="sDay">
            <input type="submit" class="btn btn-primary" value="搜索" />
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">通关层数</th>
                <th align="center">通关人数</th>
                <th align="center">占比总人数<a class="hint" title="通关人数 / 总人数" data-toggle="tooltip"></a></th>
                <th>充值玩家通关人数</th>
                <th align="center">充值玩家占比<a class="hint" title="充值通关人数 / 总充值人数" data-toggle="tooltip"></a></th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo" key="level">
                <tr>
                    <td>{$level}</td>
                    <td>{$vo["num"]}</td>
                    <td>{:round($vo["num"] / $total * 100, 2)}%</td>
                    <td>{$vo.pay_num}</td>
                    <td>{:round($vo["pay_num"] / $payTotal * 100, 2)}%</td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<include file="public@footer" />